package com.yby.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yby.common.utils.PageUtils;
import com.yby.common.utils.R;
import com.yby.mall.product.entity.AttrEntity;
import com.yby.mall.product.vo.AttrVo;
import com.yby.mall.product.vo.ProductAttrValueVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author yangbingying
 * @email 2771355658@qq.com
 * @date 2021-07-09 20:49:20
 */
public interface AttrService extends IService<AttrEntity> {

    R queryPage(Long catId, String type, Integer page, Integer limit, String key);

    R info(Long attrId);

    R modify(AttrVo attrVo);

    R saveAttr(AttrVo attrVo);

    R deleteByIds(List<Long> asList);

    R baseListforSpu(Long spuId);

    R updateProductAttrVal(List<ProductAttrValueVo> list,Long spuId);
}

